﻿#include "CmdSurfaceElectricFieldMapSidebarNameItemRename.h"

#include "PostCommandPy.h"
#include "BaseModule/IBaseSignal.h"

#include<QDebug>

namespace PostCommand
{
    CmdSurfaceElectricFieldMapSidebarNameItemRename::CmdSurfaceElectricFieldMapSidebarNameItemRename()
        : CommandBase()
    {
        this->initCmdName();
    }

    CmdSurfaceElectricFieldMapSidebarNameItemRename::~CmdSurfaceElectricFieldMapSidebarNameItemRename()
    {
    }

    bool CmdSurfaceElectricFieldMapSidebarNameItemRename::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_surfaceElectricFieldMapSidebarNameItemRename(m_windowId, m_itemIndex, m_newName);
        return true;
    }

    void CmdSurfaceElectricFieldMapSidebarNameItemRename::undo()
    {
    }

    void CmdSurfaceElectricFieldMapSidebarNameItemRename::redo()
    {
        // execute();
    }

}
